package com.ccrfid.rmc6.repository.personnel;

import com.ccrfid.rmc6.entity.personnel.PersonnelPhotoEntity;
import org.springframework.data.repository.Repository;

public interface PersonnelPhotoRepository extends Repository<PersonnelPhotoEntity, Long> {
    //
    void deleteByPersonnelId(Long personnelId);
    //
    PersonnelPhotoEntity getByPersonnelId(Long personnelId);
    //
    PersonnelPhotoEntity save(PersonnelPhotoEntity entity);
    //
    Boolean existsByPersonnelId(Long personnelId);
}
